function clearText(thefield){
	if (thefield.defaultValue==thefield.value);
	thefield.value = "";
}


//matchs div heights for the border
function divHeight(){
	var primarySidebar = 0;
	if(document.getElementById('primarySidebar')) {
		primarySidebar = (document.getElementById('primarySidebar').offsetHeight);
	}
	var mainContent =(document.getElementById('im-mainContent').offsetHeight)
	var optionalSidebar = 0;
	if(document.getElementById('optionalSidebar')) {	
		optionalSidebar =(document.getElementById('optionalSidebar').offsetHeight);
	}
	if (primarySidebar >= mainContent){
		document.getElementById('im-mainContent').style.height = primarySidebar+"px";
	} 
	if (mainContent >= primarySidebar && primarySidebar != 0){
		document.getElementById('primarySidebar').style.height = mainContent+"px";
	}
	if (optionalSidebar >= mainContent){
		document.getElementById('im-mainContent').style.height = optionalSidebar+"px";
	} 
    //alert("divHeight() ran mainContent: "+mainContent+" optionalSidebar: "+optionalSidebar+" primarySidebar: "+primarySidebar);	
	//alert(mainContent)
	//alert(optionalSidebar)

}
